                             {% extends 'Reservation/base.html' %}
                                {% block body_block %}
                            <div class="row clearfix">
                                    <div class="col-md-12 column">
                                        <h3 class="text-center text-primary">
                                                    Offer Details
                                                </h3>
                                        <div class="row">
                                             {% if offer %}
                                                 {% for offer in offer %}
                                            <div class="col-md-4">
                                                <div class="thumbnail">
                                                    <img alt="300x200" src="{{ offer.room.hotel.HotelImage.url }}" />
                                                    <div class="caption">
                                                        <h3>
                                                            Hotel Name:  {{ offer.room.hotel.Name }}
                                                        </h3>
                                                        <p>
                                                            Hotel City:   {{ offer.room.hotel.City }}
                                                        </p>
                                                        <p>
                                                            Hotel Country:   {{ offer.room.hotel.Country }}
                                                        </p>
                                                        <p>
                                                            Hotel Address:   {{ offer.room.hotel.Address }}
                                                        </p>
                                                        <p>
                                                            Hotel Contact:   {{ offer.room.hotel.Contact }}
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-4">
                                                <div class="thumbnail">
                                                    <img alt="300x200" src="{{ offer.room.image.url}}" />
                                                    <div class="caption">
                                                        <h3>
                                                            Room Type: {{ offer.room.type }}
                                                        </h3>
                                                        <p>
                                                            Room Price: {{ offer.room.price }}
                                                        </p>
                                                        <p>
                                                           <button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Book</button>
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-4">
                                                <div class="thumbnail">
                                                    <img alt="300x200" src="{{ offer.offer.company.Image.url}}" />
                                                    <div class="caption">
                                                        <h3>
                                                            Offer Price: {{ offer.offer.offer_discount }}
                                                        </h3>
                                                        <p>
                                                            Offer Start: {{ offer.offer.offer_start }}

                                                            </p>
                                                        <p>
                                                            Offer End: {{ offer.offer.offer_end }}

                                                            </p>
                                                        <p>
                                                            <button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Book</button>

                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    {% endfor %}
                            {% endif %}
                                </div>
                                    <div class="row clearfix">
                                    <div class="col-md-8 column">
                                        <h3 class="text-primary text-left">
                                            Comments:

                                            {% if comment %}
                                            {% for com in comment %}
                                        <blockquote>
                                            <p>
                                                  {{ com.body }}
                                            </p> <small>{{ com.added }} </small>
                                        </blockquote>
                                            {% endfor %}
                                        {% endif %}
                                    </div>
                                    <div class="col-md-4 column">
                                    </div>
                                </div>
                                <div class="row clearfix">
                                    <div class="col-md-6 column">
                                        <form role="form" action="/Reservation/comment/" method="post">
                                            {% csrf_token %}
                                            <div class="form-group">
                                                 <label for="comment">Comment Text</label><textarea class="form-control" rows="3" name="comment"></textarea>
                                                {% if offer %}
                                                 {% for offer in offer %}
                                                <input type="hidden" value="{{ offer.room.hotel.id }}" name="hotel">
                                                <input type="hidden" value="{{ offer.offer.id }}" name="offer">
                                                {% endfor %}
                                            {% endif %}
                                            </div>

                                            <button type="submit" class="btn btn-default">Post Cooment</button>
                                        </form>
                                    </div>
                                    <div class="col-md-6 column">
                                    </div>
                                </div>
                                       <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
                                           <div class="modal-dialog modal-sm">
                                               <div class="modal-content">
                                                   <form class="form-horizontal" action="/Reservation/book/" method="post">
                                                   {% csrf_token %}
                                                       <fieldset>
                                                           <div class="control-group">
                                                                <label class="control-label" for="comment">CheckIn Date</label>
                                                                <div class="controls">
                                                                    <input type="date" name="checkin" required>
                                                                </div>
                                                               <label class="control-label" for="comment">CheckOut Date</label>
                                                                <div class="controls">
                                                                    <input type="date" name="checkout" required>
                                                                </div>
                                                            </div>
                                                            <div class="control-group">
                                                              <label class="control-label" for="com"></label>
                                                              <div class="controls">
                                                                   {% if offer %}
                                                                     {% for offer in offer %}
                                                                        <input type="hidden" value="{{ offer.room.id }}" name="room">
                                                                        <input type="hidden" value="{{ offer.offer.id }}" name="offer">
                                                                     {% endfor %}
                                                                   {% endif %}
                                                                <button id="com" name="com" class="btn btn-primary">Book Room</button>
                                                              </div>
                                                            </div>

                                                        </fieldset>
                                                        </form>
                                               </div>
                                           </div>
                                </div>
                              {% endblock %}